<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'detail-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'uid'); ?>
		<?php echo $form->textField($model,'uid'); ?>
		<?php echo $form->error($model,'uid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'companyName'); ?>
		<?php echo $form->textField($model,'companyName',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'companyName'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'companyPhone'); ?>
		<?php echo $form->textField($model,'companyPhone',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'companyPhone'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'companyFax'); ?>
		<?php echo $form->textField($model,'companyFax',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'companyFax'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'companyEmail'); ?>
		<?php echo $form->textField($model,'companyEmail',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'companyEmail'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'companyAddress'); ?>
		<?php echo $form->textField($model,'companyAddress',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'companyAddress'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lastdate'); ?>
		<?php echo $form->textField($model,'lastdate',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'lastdate'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->